package com.cis467.mrball;

//temporary until decide on credits appearance

import android.app.Activity;
import android.os.Bundle;
import android.view.Gravity;
import android.view.ViewGroup.LayoutParams;
import android.widget.ImageView;
import android.widget.ImageView.ScaleType;
import android.widget.LinearLayout;

	public class Credits extends Activity {
		/**
		 * Called when the activity is first created.
		 */
		@Override
		public void onCreate(Bundle savedInstanceState) {
		    super.onCreate(savedInstanceState);

		    ImageView pic = new ImageView(this);
		    pic.setImageResource(R.drawable.credits);
		    pic.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
		    pic.setAdjustViewBounds(true);
		    pic.setScaleType(ScaleType.FIT_XY);
		    LinearLayout ll = new LinearLayout(this);
		    ll.setOrientation(LinearLayout.VERTICAL);
		    ll.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
		    ll.setGravity(Gravity.CENTER);
		    ll.addView(pic);
		    setContentView(ll);
		}
	}